package com.wangijun.yuan.core.base;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * yes_no
 * @author mldong
 *
 */
@Getter
public enum YesNoEnum  {
	/**
	 * 是
	 */
	YES(1, "是"),
	/**
	 * 否
	 */
	NO(0,"否")
	;

	YesNoEnum(int value, String name) {
		this.code = value;
		this.message = name;
	}

	@EnumValue
	@JsonValue
	private final Integer code;
	private final String message;
}